<!DOCTYPE html>
<html lang="zh">
    <head>
        <meta charset="UTF-8">
        <title>注册页</title>
    </head>
    <body>
        <h1>注册页</h1>
        <div style="color: red" class="message">
            {% if message %}
                {{ message }}
            {% endif %}
        </div>
        <form action="/register/" method="post">
            {% csrf_token %}
            <label for="">用户名：</label>
            <input type="text" name="username" placeholder="用户名1-20个字符，中英文数字或_" required="required" style="box-shadow: 0 0 4px #06c">
            <br>
            <label for="">&nbsp;&nbsp;&nbsp;密码：</label>
            <input type="password" name="password" placeholder="请输入密码 20位以下" required="required" style="box-shadow: 0 0 4px #06c">
            <br>
            <label for="">&nbsp;&nbsp;&nbsp;邮箱：</label>
            <input type="email" name="email" placeholder="请输入邮箱" required="required" style="box-shadow: 0 0 4px #06c">
            <input type="submit" value="确认注册">
        </form>
    </body>
</html>